#encoding: utf-8
module GrapeAPI
  module APIHelpers
    def current_user
      @current_user ||= env["HTTP_X_USER_ACCESS_TOKEN"].nil? ? nil : User.find_by_authentication_token(env["HTTP_X_USER_ACCESS_TOKEN"])
    end
  end
end